package cz.muni.fi.pa165.travelagency.dto;

import cz.muni.fi.pa165.travelagency.entities.PackageTour;
import java.io.Serializable;
import java.util.Objects;

/**
 * Data transfer object for {@link PackageTour} entity.
 *
 * @author Lukas Jungmann
 * @version 1.0
 * @see PackageTour
 */
public class PackageTourDTO implements Serializable {

    private static final long serialVersionUID = 7L;
    private Long id;
    private String name;
    private int capacity;
    private String description;
    private String destination;

    public PackageTourDTO() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 37 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PackageTourDTO other = (PackageTourDTO) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }
}
